package fr.jee.ejb.service;

import java.io.Serializable;

import javax.batch.api.chunk.AbstractItemReader;
import javax.inject.Named;

@Named
public class SimpleItemReader extends AbstractItemReader {

	@Override
	public Object readItem() throws Exception {
		System.out.println("SimpleItemReader : readItem");
		return new Object();
	}
	
	@Override
	public void open(Serializable checkpoint) throws Exception {
		System.out.println("SimpleItemReader : open");
		super.open(checkpoint);
	}
	
	@Override
	public void close() throws Exception {
		System.out.println("SimpleItemReader : close");
		super.close();
	}

}
